package hello.word.m2.maven.dao;

import hello.word.m2.maven.domain.Book;

import javax.inject.Singleton;
import java.util.List;

@Singleton
public class BookRepositoryImpl implements BookRepository{

    private final BookDao bookDao;

    public BookRepositoryImpl(BookDao bookDao) {
        this.bookDao = bookDao;
    }

    @Override
    public List<Book> selectAll() {
        return bookDao.selectAll();
    }
}
